package com.gpframework.module.req.login;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotBlank;

/**
 * Facebook登录请求体
 */
@Data
@ApiModel
@Validated
public class FacebookLoginReq {

     @NotBlank(message = "请输入openid")
     @ApiModelProperty(value = "openid",required = true)
     private String openid;

     @NotBlank(message = "请输入昵称")
     @ApiModelProperty(value = "昵称",required = true)
     private String nickname;

     @ApiModelProperty(value = "头像",required = false)
     private String avatar;

     @NotBlank(message = "请输入设备类型")
     @ApiModelProperty(value = "设备类型 Android或IOS",required = true)
     private String deviceType;

     @ApiModelProperty(value = "安装渠道",required = false)
     private String channel;

     @ApiModelProperty(value = "设备token",required = false)
     private String deviceToken;

     @ApiModelProperty(value = "设备信息",required = false)
     private String deviceInfo;

     @ApiModelProperty(value = "本机语言",required = false)
     private String nativeLanguage;

}
